﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace odinshrine
{
    class Arme
    {
     /*   public int puissance = 0;
        public int cadenceArme = 450;

        public void changerArme(KeyboardState clavier)
        {
            if (clavier.IsKeyDown(Keys.D1))
            {
                //AK47
                cadenceArme = 100;
                puissance = 1;
            }

            if (clavier.IsKeyDown(Keys.D2))
            {
                //DEAGLE
                cadenceArme = 450;
                puissance = 1;
            }
        }
      */

        public Texture2D texturearme;
        public SpriteManager textureballe;
        public int cadence;
        public int puissance;
        public int portee;
        public int bpshoot;
        public int delay;
        public float spread;
        public int maxAmmo;
        public int iD;

        public Arme(Texture2D texturearme, Texture2D textureballe, int cadence, int puissance, int portee, int bpshoot, int delay, float spread, int maxAmmo, int iD)
        {
            this.texturearme = texturearme;
            this.textureballe = new SpriteManager();
            this.textureballe.Load(textureballe, 1, 1);
            this.cadence = cadence;
            this.puissance = puissance;
            this.portee = portee;
            this.bpshoot = bpshoot;
            this.delay = delay;
            this.spread = spread;
            this.maxAmmo = maxAmmo;
            this.iD = iD;
        }
        public Arme(Texture2D textureballe, int cadence, int puissance, int portee, int bpshoot, int delay, float spread, int maxAmmo, int iD)
        {
            this.textureballe = new SpriteManager();
            this.textureballe.Load(textureballe, 1, 1);
            this.cadence = cadence;
            this.puissance = puissance;
            this.portee = portee;
            this.bpshoot = bpshoot;
            this.delay = delay;
            this.spread = spread;
            this.maxAmmo = maxAmmo;
            this.iD = iD;
        }

        public Arme(int cadence, int puissance, int portee, int bpshoot, int delay, float spread, int maxAmmo, int iD)
        {
            this.cadence = cadence;
            this.puissance = puissance;
            this.portee = portee;
            this.bpshoot = bpshoot;
            this.delay = delay;
            this.spread = spread;
            this.maxAmmo = maxAmmo;
            this.iD = iD;
        }
    }
}
